package com.citcc.business.mapper;

import com.citcc.business.bean.CdzStation;
import com.citcc.business.bean.PositionModel;
import com.citcc.business.bean.vo.CdzStationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CdzStationMapper {
    int deleteByPrimaryKey(String id);

    int insert(CdzStation record);

    int insertSelective(CdzStation record);

    CdzStation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CdzStation record);

    int updateByPrimaryKey(CdzStation record);

    /**
     * 查询所有
     */
    List<CdzStation> selectCdzStationAll(CdzStation station);

    List<CdzStationVo> getStationListByRadii(PositionModel aroundLocation);

    CdzStationVo getStationById(String stationId);
    /**
     * 根据抢号查询充电站
     */
    CdzStation getByGunIdAndStakeCode(@Param("id") String id,@Param("code")String code);
}